package com.example.day20;

import static java.lang.Character.getName;

/**
 * @author Lenovo
 */
public class Thread {
    public static final boolean MAX_PRIORITY = ;
    public static final boolean MIN_PRIORITY = ;
    public static final boolean NORM_PRIORITY = ;

    public Thread(MyRunnable my, String 高铁) {
    }

    public Thread(Customer c) {
    }

    public Thread(Producer p) {
    }

    public static Class<Object> currentThread() {
    }

    public static void sleep(int i) {

    }

    public void MyThread() {}

    public MyThread(String name) {

    }
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(getName()+":"+i);
        }
    }

    public void start() {

    }
}
public class MyThreadDemo {
    public static void main(String[] args) {
        MyThread my1 = new MyThread();
        MyThread my2 = new MyThread();
        //void setName(String name)：将此线程的名称更改为等于参数 name
        my1.setName("高铁");
        my2.setName("飞机");
        //Thread(String name)
        MyThread my1 = new MyThread("高铁");
        MyThread my2 = new MyThread("飞机");
        my1.start();
        my2.start();
        //static Thread currentThread() 返回对当前正在执行的线程对象的引用
        System.out.println(Thread.currentThread().getName());
    }
}
